/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package managerBeanViews;

import entity.Articles;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import processor.ArticlesFacade;

/**
 *
 * @author maynoigi
 */
@ManagedBean
@SessionScoped
public class News {
    @EJB
    private ArticlesFacade articlesFacade;

    public List<Articles> getArticles() {
        articles=articlesFacade.getArticlesAll();
        return articles;
    }

    public void setArticles(List<Articles> articles) {
        this.articles = articles;
    }

    List<Articles> articles;
    public News() {
    }
}
